package com.lt.experiment04.mission03;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment04.mission03
 * @ClassName Naiyou
 * @Description to do
 * @date 2021/11/2 11:17
 */
public class Naiyou extends CondimentDecorator{
    Bread b;

    public Naiyou(Bread b) {
        this.b = b;
    }

    @Override
    public double cost() {
        return b.cost()+1;
    }

    @Override
    public String getDescription() {
        return b.getDescription()+"、奶油";
    }
}
